/**
 * 进件 api 封装
 */
import { postRequest } from '/@/lib/axios'

export const registApi = {
  /**
   * 分页查询
   */
  page: (param) => {
    return postRequest('/b-agent/enroll/j_merchants_product/page', param)
  },
  /**
   * 分页详情查询
   */
  detailPage: (param) => {
    return postRequest('/b-agent/enroll/j_merchants_product_detail/page', param)
  },
  /**
   * 根据id查经营详情
   */
  findId: (param) => {
    return postRequest('/b-agent/enroll/find_id', param)
  },
  /**
   * 修改分账状态
   */
  updateAllocationStatus: (param) => {
    return postRequest('/b-agent/enroll/updateAllocationStatus', param)
  },
  /**
   * 修改经营信息
   */
  update: (param) => {
    return postRequest('/b-agent/enroll/update', param)
  },
  /**
   * 保存经营信息
   */
  save: (param) => {
    return postRequest('/b-agent/enroll/save', param)
  },
  /**
   * 修改审核状态/发起进件
   */
  submit: (param) => {
    return postRequest('/b-agent/enroll/update_check_status', param)
  },
  /**
   * 新增商户进件
   */
  insertMerchantsProduct: (param) => {
    return postRequest('/b-agent/enroll/j_merchants_product/insert', param)
  },
  /**
   * 新增经营信息
   */
  insert: (param) => {
    return postRequest('/b-agent/enroll/insert', param)
  },
  /**
   * 增加场景
   */
  insertScene: (param) => {
    return postRequest('/b-agent/enroll/j_scene/insert_list', param)
  },
  /**
   * 调用进件资料(根据详情编号和通道类型查经营详情)
   */
  findIdByChannelType: (param) => {
    return postRequest('/b-agent/enroll/find_by_id_and_channel_type', param)
  },
  /**
   * 获取对私业务银行列表
   */
  getPersonalBanking: (param) => {
    return postRequest('/b-agent/enroll/getPersonalBanking', param)
  },
  /**
   * 获取对公业务银行列表
   */
  getCorporateBanking: (param) => {
    return postRequest('/b-agent/enroll/getCorporateBanking', param)
  },
  /**
   * 获取对公业务银行列表
   */
  getBranches: (param) => {
    return postRequest('/b-agent/enroll/getBranches', param)
  },
  /**
   * 获取省份列表
   */
  getProvinces: (param) => {
    return postRequest('/b-agent/enroll/getProvinces', param)
  },
  /**
   * 获取城市列表
   */
  getCitys: (param) => {
    return postRequest('/b-agent/enroll/getCitys', param)
  },
}
